package com.datuo.dtf.admin.conf;


import com.datuo.dtf.admin.util.JwtTokenUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 设置静态参数初始化
 */
@Configuration
public class StaticConfig {

    @Value("${jwt.header}")
    private String tokenHeader;
    @Value("${jwt.tokenHead}")
    private String tokenHead;

    @Bean
    public int initStatic() {
        JwtTokenUtils.tokenHead = tokenHead;
        JwtTokenUtils.tokenHeader = tokenHeader;
        return 0;
    }
}
